package com.ytjj.qmyx.mall.model.response;

import com.ytjj.qmyx.mall.model.Product;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.util.List;

/**
 *
 *  *
 **/
@Data
public class ActivityProductResponse {

    private Integer id;

    private String productName;

    private String productImg;

    private String sceneImg;

    private BigDecimal originalPrice;

    private BigDecimal price;

    private BigDecimal curPrice;

    private String activityType;

    private Integer goodRatio;

    private BigDecimal activityMax = BigDecimal.ZERO;

    private BigDecimal activityMin = BigDecimal.ZERO;

    private String volumeStr;

    private Integer volume;
    /**
     * 库存总量
     *
     */
    private Integer stock;
    /**
     * 库存剩余进度条
     */
    private Integer stockProgress;
    /**
     * 库存剩余进度条（带%）
     */
    private String stockProgressStr;
    /**
     * 折扣
     */
    private String discount;
    /**
     * 活动主图
     */
    private String activityMainImg;

    /**
     * 虚拟库存( h5销售渠道使用)
     * @return
     */
    private Integer virtualStock;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 商品标签列表
     */
    private List<ActivityProductLabel> labels;

    /**
     * 购买过该商品的用户头像
     */
    private List<String> headImgs;

    /**
     * 推荐文案
     *
     * @mbg.generated
     */
    private String recommendDoc;



    public ActivityProductResponse(){

    }

    public ActivityProductResponse(Product product){
        BeanUtils.copyProperties(product,this);
    }
}
